package controller.appcategory;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import pojo.AppCategory;
import pojo.HttpResult;

import service.appcategory.appcategoryService;

@Controller
public class appCategoryController {
@Autowired
private appcategoryService appcategoryService;
@RequestMapping("fenlei")
@ResponseBody
public Object fenlei(Integer parentId){
	List<AppCategory> cate=appcategoryService.getAppCategoryListByParentId(parentId);
	return HttpResult.ok(cate);
}
}
